<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<c:set value="recruit" var="moduleName" scope="request" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>区域划分</title>
	</head>
	<body>
	<div class="div-content">
		<html:form action="/console/recruit/rmProvinceEx.do" styleId="rmProvinceForm" method="POST">
			<input type="hidden" name="method" class="method" value="save" />
			<html:hidden property="id" />
			<table class="table-layout">
				<tr class="tr-even">
					<td class="td-label">
						省份
					</td>
					<td>
						<html:hidden property="provinceId" styleId="el_provinceId" />
						<logic:present name="unallocatedProvinces">
							<select id="select_provinceId">
								<option value="">
									请选择
								</option>
								<logic-el:iterate name="unallocatedProvinces" id="province" indexId="index">
									<option value="<c:out value="${province.code}" />">
										<c:out value="${province.name}" />
									</option>
								</logic-el:iterate>
							</select>
						</logic:present>
						<logic:notPresent name="unallocatedProvinces">
							<common:province name="rmProvinceForm" property="provinceId" />
						</logic:notPresent>
					</td>
				</tr>
				<tr class="tr-odd">
					<td class="td-label">
						用户
					</td>
					<td>
						<html:hidden property="owner" styleId="el_owner" />
						<select id="select_owner">
							<option value="">
								请选择
							</option>
							<logic-el:iterate name="regionManagers" id="manager" indexId="index">
								<option value="<c:out value="${manager.id}" />">
									<c:out value="${manager.otherName}" />
								</option>
							</logic-el:iterate>
						</select>
					</td>
				</tr>
			</table>
			<br />
			<div class="center-opertion">
				<html:submit>提交</html:submit>
				<input type="button" onclick="history.back();" value="取消" />
			</div>

		</html:form>
	</div>
		<script type="text/javascript">
bindSelect("select_owner","el_owner");
<logic:present name="unallocatedProvinces">
bindSelect("select_provinceId","el_provinceId");
</logic:present>
	</script>
	</body>
</html>
